import request from '@/utils/request'

// 查询补发师信息列表
export function listHairFixTeacher(query) {
  return request({
    url: '/business/hairFixTeacher/list',
    method: 'get',
    params: query
  })
}

// 查询补发师信息详细
export function getHairFixTeacher(id) {
  return request({
    url: '/business/hairFixTeacher/' + id,
    method: 'get'
  })
}

// 新增补发师信息
export function addHairFixTeacher(data) {
  return request({
    url: '/business/hairFixTeacher',
    method: 'post',
    data: data
  })
}

// 修改补发师信息
export function updateHairFixTeacher(data) {
  return request({
    url: '/business/hairFixTeacher',
    method: 'put',
    data: data
  })
}

// 删除补发师信息
export function delHairFixTeacher(id) {
  return request({
    url: '/business/hairFixTeacher/' + id,
    method: 'delete'
  })
}

/* 同步博卡老师数据 */
export function updateBokaTeacher() {
  return request({
    url: '/business/hairFixTeacher/synBokaData',
    method: 'get'
  })
}
